<script setup lang="ts">
import { ref, watch } from "vue";
import $startup from "xcore/startup";
interface Props {
    page_id: string
}

const props = defineProps<Props>()
let page: any = ref({})
watch(() => props.page_id, (value: string) => {
    page.value = $startup.start(value, "page")
}, { immediate: true });

</script>
<template>
    <div>
            <x-cmpnt-renders v-if="page.pageId == page_id" :cmpnts="page.pages" :data="page.data"></x-cmpnt-renders>
    </div>
</template>

<style scoped></style>
